package com.freesky.web.manager.remote.order.fallback;

import com.freesky.common.pojo.DataTablesResult;
import com.freesky.common.utils.reponse.JSONResponse;
import com.freesky.common.vo.VOItem;
import com.freesky.web.manager.remote.order.ItemRemote;
import com.freesky.web.manager.remote.order.OrderRemote;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Component
public class OrderRemoteFallback implements OrderRemote {
    private Logger logger = LoggerFactory.getLogger(OrderRemoteFallback.class);


    @Override
    public DataTablesResult getOrderList(int draw, int start, int length, String search, int orderCol, String orderDir) {
        logger.error("订单服务调用出故障了");
        return null;
    }

    @Override
    public JSONResponse getOrderCount() {
        logger.error("订单服务调用出故障了");
        return null;
    }

    @Override
    public JSONResponse getOrderDetail(String orderId) {
        logger.error("订单服务调用出故障了");
        return null;
    }

    @Override
    public JSONResponse remark(String orderId, String message) {
        logger.error("订单服务调用出故障了");
        return null;
    }

    @Override
    public JSONResponse deliver(String orderId, String shippingName, String shippingCode, BigDecimal postFee) {
        logger.error("订单服务调用出故障了");
        return null;
    }

    @Override
    public JSONResponse cancelOrderByAdmin(String orderId) {
        logger.error("订单服务调用出故障了");
        return null;
    }

    @Override
    public JSONResponse delete(String[] ids) {
        logger.error("订单服务调用出故障了");
        return null;
    }
}
